//
//  CustomTextField.h
//  Router
//
//  Created by teki on 15/10/13.
//  Copyright © 2015年 dc. All rights reserved.
//

#import "BaseView.h"

typedef NS_ENUM(NSInteger, CustomTextFieldType){
    CustomTextFieldTypeNone= -1,
    CustomTextFieldTypePhone,
    CustomTextFieldTypePwd,
};

@interface CustomTextField : BaseView
-(id)initWithType:(CustomTextFieldType)type target:(id)target FontSize:(int)fontSize;

@property(nonatomic,copy) NSString *placeholder;
@property (nonatomic, copy) NSAttributedString *attributePlaceholder;
@property(nonatomic,strong)UITextField *textField;
@property (nonatomic, assign) NSInteger type;
@property (nonatomic, assign) NSInteger fontSize;

/// 是否显示按钮
@property (nonatomic, assign) BOOL isShowPasswordButton;

-(void)setStyleColor:(UIColor *)color;

@end
